package org.nmgyjt.springboot.entity.storeInfo;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.experimental.Accessors;
import org.nmgyjt.springboot.entity.equipage.Equipage;
import org.nmgyjt.springboot.entity.materials.Materials;

import java.util.Date;
import java.util.List;
import java.util.Map;

@Data
@Accessors(chain = true)
@TableName("store_info")
public class StoreInfo {
  @TableId(type = IdType.ASSIGN_UUID)
  private String id;
  private String depId;
  private String storeName;
  private String storeNature;
  private Double storeArea;
  private String address;
  private double coordinateX;
  private double coordinateY;
  private String headName;
  private String headPhone;
  private String state;
  private String cerateId;
  private String createName;
  private String snycState;
  @TableField(fill = FieldFill.INSERT)
  private Date createTime;

  private Integer protectNum;
  private Integer floodNum;
  private Integer shockproofNum;
  private Integer disasterNum;
  private Integer otherNum;

  @TableField(fill = FieldFill.INSERT_UPDATE)
  private Date updateTime;
  @TableField(exist = false)
  private List<Materials> materialsList;
  @TableField(exist = false)
  private List<Materials> materialsList1;
  @TableField(exist = false)
  private List<Materials> materialsList2;
  @TableField(exist = false)
  private List<Materials> materialsList3;
  @TableField(exist = false)
  private List<Materials> materialsList4;
  @TableField(exist = false)
  private List<Materials> materialsList5;

  @TableField(exist = false)
  private Map<String, List<Materials>> listMap;

  @TableField(exist = false)
  private Integer count1;
  @TableField(exist = false)
  private Integer count2;
  @TableField(exist = false)
  private Integer count3;
  @TableField(exist = false)
  private Integer count4;
  @TableField(exist = false)
  private Integer count5;

  @TableField(exist = false)
  private String ids;

  private String headId;
  private String superDepartment;
  private String superDepartmentId;
  private String areaCode;


  public StoreInfo() {
  }
}
